﻿<%@ Page Title="" Language="C#" MasterPageFile="~/4SMasterPage.master" AutoEventWireup="true" CodeFile="orderComplete.aspx.cs" Inherits="orderComplete" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

    <div style="  font-size:80%;">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        Width="100%" onrowcommand="GridView1_RowCommand" 
        onrowdatabound="GridView1_RowDataBound">
        <Columns>
            <asp:BoundField DataField="_orderId" HeaderText="订单号" />
            <asp:BoundField DataField="_vehicle" HeaderText="车牌号" />
            <asp:TemplateField HeaderText="订单状态">
            <ItemTemplate>  <%#changeState((int)Eval("_orderState")) %></ItemTemplate>
          
            </asp:TemplateField>
            <asp:BoundField DataField="_isuseParts" HeaderText="是否使用零件" />
            <asp:BoundField DataField="_isuseMachine" HeaderText="是否使用机器" />
                <%--<asp:BoundField DataField='<%#Eval(changeState("_orderState")) %>' HeaderText="订单状态" />--%>
            <asp:BoundField DataField="_orderstartDate" HeaderText="订单开始时间" 
                DataFormatString="{0:yyyy/MM/dd}" />
            <asp:BoundField DataField="_orderendDate" HeaderText="预计结束时间" 
                DataFormatString="{0:yyyy/MM/dd}" />
            <asp:BoundField DataField="_anticipatedCost" HeaderText="预算" />
            <asp:TemplateField HeaderText="是否同意">
                <ItemTemplate>
                   <p> <asp:ImageButton ID="ibtnagree" runat="server" ImageUrl="~/Image/true1.png" 
                           CommandArgument='<%#Eval("_orderId") %>' CommandName="agree" Height="22px" 
                           Width="40px"/>
                    
                    <asp:ImageButton ID="ibtnrefuse" runat="server" Height="22px" 
                        ImageUrl="~/Image/false1.png" Width="45px" 
                           CommandArgument='<%#Eval("_orderId") %>' CommandName="refuse" /></p>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
  </div>  
<div style=" text-align:center; font-size:80%;">
    <asp:LinkButton ID="lnbtnfirst" runat="server" onclick="lnbtnfirst_Click" >首页</asp:LinkButton>
    <asp:LinkButton ID="lnbtnprevious" runat="server" onclick="lnbtnprevious_Click">上一页</asp:LinkButton>
    <asp:LinkButton ID="lnbtnnext" runat="server" onclick="lnbtnnext_Click">下一页</asp:LinkButton>
    <asp:LinkButton ID="lnbtnlast" runat="server" onclick="lnbtnlast_Click">末页</asp:LinkButton>
    </div>

</asp:Content>

